package com.ics.atable.chat.model.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 分页查询对话历史的请求参数
 *
 * @author haohongbin
 */
@Valid
@Data
@Schema(description = "分页查询对话历史的请求参数")
public class GetChatHistoryByPageDTO {
    /**
     * 会话id
     */
    @NotBlank(message = "会话id不能为空")
    @Schema(description = "会话id")
    private String sessionId;

    /**
     * 分页大小
     */
    @Schema(description = "分页大小")
    private int pageSize;

    /**
     * 最后创建时间
     */
    @Schema(description = "时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalDateTime lastCreateTime;
}
